﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AutoViewENAState.aspx.cs" Inherits="InstrumentManage_AutoViewENAState" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
        <div style="overflow: auto; width: 100%; text-align:center ">
            <br />
            <div style="text-align: center; width:80%; margin:0 auto;">
                <table style="width: 100%">
                    <tr>
                        <td>
                            在线设备数量</td>
                        <td>
                            不在线设备数量</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="XX-Large" 
                                ForeColor="Lime"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="XX-Large" 
                                ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            不在线设备信息列表：</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
                                CellPadding="3" CellSpacing="1" DataKeyNames="ENAIP" GridLines="None" 
                                PageSize="50" Width="100%">
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <Columns>
                                    <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                                    <asp:BoundField DataField="ENAPlace" HeaderText="矢网位置" />
                                    <asp:BoundField DataField="ENAIP" HeaderText="矢网IP" />
                                    <asp:BoundField DataField="ENAState" HeaderText="矢网状态" />
                                </Columns>
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            是否报警</td>
                        <td>
                            <asp:Image ID="Image1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl="~/InstrumentManage/ViewENAState.aspx">查看所有设备在线状态</asp:HyperLink>
                        </td>
                        <td>
                            最近刷新时间：<asp:Label ID="Label2" runat="server"></asp:Label></td>
                    </tr>
                </table>
                <br />
                <asp:Timer ID="Timer1" Interval="60000" Enabled="true" runat="server" 
                    ontick="Timer1_Tick">
                </asp:Timer>
            </div> 
            </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div>
        <br />
        <br />
        <br />
        <br />
        </div>
</asp:Content>

